package com.julang.check.utils;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;
import com.julang.check.bean.CommonEntity;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
 * @author 赵自强
 * */
public interface CommonData {
    int ONEOFNUMBER = 1;
    int TWOOFNUMBER = 2;
    int THREEOFNUMBER = 3;
    int FOUROFNUMBER = 4;
    int FIVEOFNUMBER = 5;
    int SUCCESS = 10000;
    int USERNOTEXISTCODE = 20000;
    int USERNOTLOGINCODE = 30000;
    int DATABASEERROR = 40000;
    int PASSWORDERRORCODE = 50000;
    int FAIL = 60000;
    int FILENOTEXIST = 70000;
    String APP_ID = "20190411000286885";
    String SECURITY_KEY = "o4QcLbl7zlhkvNTJQfWY";
    String DATEFORMATTER = "yyyy-MM-dd HH:mm:ss";
    String[] SWAGGERURLS = {"/swagger-resources", "/v2"};
    List<CommonEntity.Language> LANGUAGES = new ArrayList<>();
    Gson GSON = new GsonBuilder().enableComplexMapKeySerialization().create();
    Type REQUESTTYPE= new TypeToken<Map<String, String>>() {}.getType();
    int EXPIRES = 48 * 60 * 60 * 1000;
    String WINDOWSFILEPATH = "E:\\download\\";
    String LINUXFILEPATH = "/mnt/";
    String REPEATWORDSPLITE = "、";
    String DOUSPLITE = ",";
    String POINT = ".";
    String LF = "\r";
    String IGNORESUPPERCASE = "(?i)";
    String GREENTAGSTART = "<em class=\"replace\">";
    String GREENTAGEND = "</em>";
    String DOCXSUFFIX = "docx";
    String ERRORCODESTART = "{\"error_code\"";
    String HTMLSTART = "<!DOCTYPE html>";
}
